package cn.iocoder.yudao.module.xhyy.controller.admin.hearing.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 听力资源新增/修改 Request VO")
@Data
public class HearingSaveReqVO {

    @Schema(description = "唯一标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "9779")
    private String id;

    @Schema(description = "资源名称", example = "赵六")
    private String hearingName;

    @Schema(description = "章节")
    private String chapter;

    @Schema(description = "绑定的教材", requiredMode = Schema.RequiredMode.REQUIRED, example = "30240")
    @NotNull(message = "绑定的教材不能为空")
    private Integer bookId;

    @Schema(description = "年级")
    private Integer grade;

    @Schema(description = "书籍名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotEmpty(message = "书籍名称不能为空")
    private String bookName;

    @Schema(description = "听力资源", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @NotEmpty(message = "听力资源不能为空")
    private String hearingUrl;

}